import Mock from 'mockjs';
Mock.setup({ timeout: 2000 });  
Mock.mock('/api/data', {
    "code":"0",
    "msg": "您当前没登陆",
    "result": {
      "list|5":[{
        "id|+1": 1,
        "userName": '@cname',
        "sex|1-2": 1,
        "state|1-5": 1,
        "interest|1-5": 1,
        "birthday": '2000-01-01',
        "address": '哈尔滨秋林',
        "time": '09:00'
      }],
      "page":1,
      "page_size":10,
      "total":100
    }
});

 
